< previous page page_387 next page >

Page 387
Running the Program
After you finish setting up both the parent and child forms, you are ready to run the program to see how a child form behaves inside the parent form. First, as always, you should save your work. Then click the Start button on the toolbar, or press F5 to run the program. When the program runs, the form layout should resemble Figure 17.8.
0387-01.jpg
Figure 17.8
This simple MDI application shows a parent from and two child
forms. Note that the child forms are instances of the same form.
You should try the following tasks so that you fully understand the behavior of the parent and child forms:
Minimize the child form, and note the location of its icon.
Move the child form around. It does not move beyond the parent form's boundaries.
Maximize the child form.
Minimize and maximize the parent form.
When you started the program, you might have noticed that the child form was shown automatically. In the simple example, you get this result because the child form (the one first created when you started the project) was designated as the project's startup form by default. If you want to have the empty MDI parent form shown when you start the program, you need to change the Startup Object setting in the Project Properties dialog box, as shown in Figure 17.9. You access the project properties by choosing Project, Project Properties.

 
< previous page page_387 next page >